package com.ai.service.made.impl;

import com.ai.common.CommonResponse;
import com.ai.entity.alarm.AlarmAdditionalParameter;
import com.ai.mapper.alarm.AlarmAdditionalParameterMapper;
import com.ai.service.made.AlarmAdditionalParameterService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.function.Function;

/**
 * @Author：xiaosheng
 * @Date：2024/5/31 15:22
 */
@Service
public class AlarmAdditionalParameterServiceImpl implements AlarmAdditionalParameterService {

    @Resource
    AlarmAdditionalParameterMapper alarmAdditionalParameterMapper;


    @Override
    public CommonResponse insert(AlarmAdditionalParameter alarmAdditionalParameter) {

        return CommonResponse.ok(alarmAdditionalParameterMapper.insert(alarmAdditionalParameter));

    }

    @Override
    public AlarmAdditionalParameter selectByRecordAlarmId(Integer id) {
        return alarmAdditionalParameterMapper.selectByRecordAlarmId(id);


    }


}
